/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package transervfx.Dato.Entidad;

import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author oscar
 */
@Entity
public class GuiaReparto extends Guia implements Serializable {
    private static final long serialVersionUID = 1L;
 
    @OneToMany(mappedBy="guiaReparto")
   private List<Encomienda> encomiendas;
    
 @ManyToOne
    @JoinColumn(name = "REPARTIDOR_FK")
    private Repartidor repartidor;
   
 
}
